/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2022-01-06 21:17:25
 */

import { DisplayModeEnmu, ISettingStore } from "@/types/store/settingStore"
import { useLocalStorage } from '@/hooks/localStorage/useLocalStorage'
const { getStorageItem } = useLocalStorage()

// 设置相关
const settingStore: ISettingStore = {
    displayMode: getStorageItem("displayMode") || DisplayModeEnmu.LIGHT,
    themeColor: getStorageItem("themeColor") || "#fd544e"
}

export default settingStore
